package com.hxzy.feign;

import com.hxzy.pojo.Admin;
import com.hxzy.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "changgou-login")
public interface UserFeign {

    @RequestMapping("/login/add")
    public Result addAdmin(Admin admin);


    @RequestMapping("/login/login")
    //@PreAuthorize("#admin.name.equals('lhc')")
    public Result login( Admin admin);

}
